package com.cms.server.tool;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

// 这里存放各种信息发送的方法，方便调用

public class sendMessage {
    public static <T> Map<String, T> createResponse(boolean status, String message) {
        Map<String, T> response = new HashMap<>();
        response.put("status", (T) (status ? "true" : "false"));
        response.put("message",(T) message);
        return response;
    }
}
